<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title> - 百度ECHarts</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="favicon.ico">
    <link href="css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="css/font-awesome.css?v=4.4.0" rel="stylesheet">

    <link href="css/animate.css" rel="stylesheet">
    <link href="css/style.css?v=4.1.0" rel="stylesheet">

</head>

<div class="wrapper wrapper-content animated fadeInRight">

    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>北京地图</h5>
                    <div class="ibox-tools">
                        <!--                            <a class="collapse-link">
                                                        <i class="fa fa-chevron-up"></i>
                                                    </a>
                                                    <a class="dropdown-toggle" data-toggle="dropdown" href="toPage?url=graph_flot.html">
                                                        <i class="fa fa-wrench"></i>
                                                    </a>
                                                    <ul class="dropdown-menu dropdown-user">
                                                        <li>
                                                            <a href="toPage?url=graph_flot.html">选项1</a>
                                                        </li>
                                                        <li>
                                                            <a href="toPage?url=graph_flot.html">选项2</a>
                                                        </li>
                                                    </ul>
                                                    <a class="close-link">
                                                        <i class="fa fa-times"></i>
                                                    </a>-->
                    </div>
                </div>
                <div class="ibox-content">
                    <div style="height:800px" id="echarts-map-chart"></div>
                </div>
            </div>
        </div>
    </div>
</div>
<script>
    $(document).ready(function(){
        $.ajax({
            url:'Data',
            type:'get',
            dataType:'json',
            success:function(data){
                /*                //方法中传入的参数data为后台获取的数据
                for(i in data.data) //data.data指的是数组，数组里是8个对象，i为数组的索引
                {
                var tr;
                tr='<td>'+data.data[i].name+'</td>'+'<td>'+data.data[i].startTime+'</td>'+'<td>'+data.data[i].is_true+'</td>'+'<td>'+data.data[i].device+'</td>'
                $("#tabletest").append('<tr>'+tr+'</tr>')
                }*/
                console.log(data);
            },
            error: function() {
                alert('请求失败 ');
            }
        })
    })
</script>
<!-- 全局js -->
<script src="js/jquery.min.js?v=2.1.4"></script>
<script src="js/bootstrap.min.js?v=3.3.6"></script>



<!-- ECharts -->
<script src="js/plugins/echarts/echarts-all.js"></script>

<!-- 自定义js -->
<script src="js/content.js?v=1.0.0"></script>


<!-- ECharts demo data -->
<script src="js/demo/echarts-demo1.js"></script>




</body>

</html>
